/*
============================================================================
 Name        : dd_mp3_xing.h
 Author      : Jian
 Version     :
 Copyright   : GPL
 Description : dd_mp3_xing.h - header file
============================================================================
*/

#ifndef DD_MP3_XING_H
#define DD_MP3_XING_H

/* INCLUDES */
#include "dd_define.h"

__DD_BEGIN_DECLS

typedef struct __dd_mp3_xing dd_mp3_xing ;

struct __dd_mp3_xing {

    DD_UINT	 frameCount ;		
    DD_UINT	 fileSize;		// File size in the xing header , not correct 
    
    DD_BYTE* toc;
    DD_UINT	 vbrScale;
};

dd_mp3_xing* dd_xing_create(const DD_BYTE* firstFrameBuf, int len) ;

void dd_xing_destroy(dd_mp3_xing* xing) ;

int dd_xing_get_pos(dd_mp3_xing* xing, int percent) ; 

__DD_END_DECLS

#endif  /* DD_MP3_XING_H */

/* End of File */
